function show(){
	//get left data
	getLeftNews();
	getLeftNotice();
	//get student data
	getStudentListInfo(1);
}

function getStudentListInfo(pageNum){
	$.ajax({
		url: "/edu/student/getStudentList",
		type: "POST",
		data: {
			rows: 6,
			page:pageNum
		},
		dataType: "json",
		async: false,
		success: function(data) {
			if (data.status) {
				$(".studentItemDiv-item-body").empty();
				$.each(data.rows, function(i, item) {				
					var studentStr = "";
					studentStr += "<a href='/edu/student/studentInfo.html?student_id=" + item.student_id + "'>";
					studentStr += "<div class='studentItem'>";
					studentStr += "<img class='studentItemImg' src='" + item.photo_path + "' />";
					studentStr += "<div class='studentItemInfo'>";
					studentStr += "<div class='studentItemInfo-title'>" + item.name + "</div>";
					studentStr += "<div class='studentItemInfo-body'>" + item.school + "</div>";
					studentStr += "<div class='studentItemInfo-body'>"+item.grade+ "</div>";
					studentStr += "<div class='studentItemInfo-body'>个人格言：" + item.remark1 + "</div>";
					studentStr += "</div>";
					studentStr += "</div>";
					studentStr += "</a>";
					$(".studentItemDiv-item-body").append(studentStr);
				});
				var pageStr = "";
				for (var i = 1; i <= data.max_page; i++) {
					if (i == data.page) {
						pageStr += " <li><a href='javascript:getStudentListInfo("  + i + ")'><span class='page-span-now'>" + i + "</span></a></li> ";
					} else {
						pageStr += " <li><a href='javascript:getStudentListInfo(" + i + ")'><span class='page-span'>" + i + "</span></a></li> ";
					}
				}
				$(".page > ul").empty();
				$(".page > ul").append(pageStr);

			} else {

			}
		}
	});
	
}
